![]() |
GetControlProperty |
||||
Header: | Controls.h | Carbon status: | Supported | |
Obtains a piece of data that has been previously associated with a control.
OSStatus GetControlProperty ( ControlRef control, OSType propertyCreator, OSType propertyTag, UInt32 bufferSize, UInt32 *actualSize, void *propertyBuffer );
A handle to the control whose associated data you wish to obtain.
Your program’s signature, as registered through Apple Developer Technical Support. If your program is of a type that would not normally have a signature (for example, a plug-in), you should still register and use a signature in this case, even though your program’s file may not have the same creator code as the signature that you register. The 'macs' property signature is reserved for the system and should not be used.
The application-defined code identifying the data.
A value specifying the size of the data to be obtained. If the size of the data is unknown, use the function GetControlPropertySize to get the data’s size. If the size specified in the bufferSize parameter does not match the actual size of the property, GetControlProperty only retrieves data up to the size specified or up to the actual size of the property, whichever is smaller, and an error is returned.
On input, a pointer to an unsigned 32-bit integer. On return, this value is set to the actual size of the associated data. You may pass null for the actualSize parameter if you are not interested in this information.
On input, a pointer to a buffer. On return, this buffer contains a copy of the data that is associated with the specified control.
A result code.
You may use the function GetControlProperty to obtain a copy of data previously set by your application with the function SetControlProperty.
This function is available with Mac OS 8.5 and later.
Supported in Carbon. Available in Mac OS 8.5 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)